<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div class="full-user-view">
    <el-container>
      <el-aside width="200px">
        <el-scrollbar>
          <el-menu>
            <el-sub-menu>
              <template #title>
                <el-icon>
                  <message />
                </el-icon>Navigator One
              </template>
              <el-menu-item @click="$router.push('/')">
                Home
              </el-menu-item>
              <el-menu-item @click="$router.push('/about')" style="color:red;background-color: black;">
                About
              </el-menu-item>
              <el-menu-item>菜单三</el-menu-item>
            </el-sub-menu>
          </el-menu>
        </el-scrollbar>
      </el-aside>
      <el-container style="height: 100%">
        <el-header>
          <h1>Header</h1>
        </el-header>
        <el-main>
          <router-view />
        </el-main>
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.full-user-view {
  height: 100vh;
  width: 100vw;
}
</style>
